package com.hotel.app.service;

import com.hotel.app.config.OpenFeignConfig;
import com.hotel.common.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * 伪装接口
 *  1.配置  @FeignClient(value = "ht-userserver")
 *  2. 拷贝远程接口
 */
@FeignClient(value = "ht-user-server", configuration = OpenFeignConfig.class)
public interface SmsLogFeign {
    @RequestMapping("/sms/sendrcode")
    public R  sendrcode(@RequestParam("phone") String phone);


    @RequestMapping("/sms/logincode")
    R logincode(@RequestParam("phone")String phone);


    @RequestMapping("/sms/find")
    R find(@RequestParam("phone") String phone);
}
